import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { ModalShareModule } from "../../modal/modal-share.module";
import { ViewPageRoutingModule } from "./view-page-routing.module";
import { ViewPageComponent } from "../view/view-page/view-page.component";
import { AppPaginationModule } from 'app/widgets/pagination/pagination.module';
import { AppPaginationComponent } from 'app/widgets/pagination/pagination.component';
import { MultiSelectModule } from 'primeng/components/multiselect/multiselect';
import { FlatpickrModule, FLATPICKR } from 'assets/angularx-flatpickr';
import * as flatpickr from 'flatpickr';
export function flatpickrFactory() {
  return flatpickr;
}
import { ReadComponent } from '../../modal/read/read.component';
import { ViewReadPageComponent } from '../view/view-read-page/view-read-page.component';

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    ModalShareModule,
    ViewPageRoutingModule,
    AppPaginationModule,
    MultiSelectModule,
    FlatpickrModule.forRoot({
      provide: FLATPICKR,
      useFactory: flatpickrFactory
    })
  ],
  declarations: [
    ViewPageComponent,
    ReadComponent,
    ViewReadPageComponent
  ],
  entryComponents: [
    ReadComponent,
    ViewReadPageComponent
  ]
})
export class ViewPageModule { }
